<html>
    <head> <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>

    <body>
<input>
<div id="test">南昌大学</div>
<div id="oninput">输入的信息是：<span id="nowInputText"></span>
</div>
<input id="inputText" type="text">
<button id="getInput">点击消失</button>
</input>
    </body>
    <script>
        var testDom=document.getElementById("test");
        testDom.innerText="NCU";
        console.log(testDom);
        var inputDom=document.getElementByID("inputText");
        var buttonDom=document.getElementById("getInput");
        buttonDom.onclick=function(){
            alert(inputDom.value);
        }
        var spanDom=document.querySeclector("span");
        buttonDom.onclick=function(){
            inputDom.style.display='none';
        }
        querySeclector("table nth-child(2)")
    </script>
</html>